package com.yqg.protection.controller.dto;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yqg.protection.cover.LocalDateTimeConverter;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * projectName:xf-service1
 * author:zxf
 * time:2024/10/14 17:59
 * description:
 */

@Data
public class ImportRecordAcceptDto {

    @ExcelProperty(value = "单位ID(必填)", index = 0)
    private Long clientId;

    @ExcelProperty(value = "受理人姓名", index = 1)
    @ApiModelProperty("受理人姓名")
    private String accepterName;

    @ExcelProperty(value = "信息描述", index = 2)
    @ApiModelProperty("信息描述")
    private String descrabe;

    @ExcelProperty(value = "处理时间", index = 3, converter = LocalDateTimeConverter.class)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty("处理时间")
    private LocalDateTime dataTime;

    @ExcelProperty(value = "处理结果", index = 4)
    @ApiModelProperty("处理结果")
    private String result;

    @ExcelProperty(value = "图片", index = 5)
    @ApiModelProperty("图片")
    private String photo;
}
